<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title>打印</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="${s.base}/js/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="${s.base}/css/base/base.css?123456" media="all" /></head>
<style type="text/css">

	html,body{ background: #e4e4e4;}
	.xyg-code{width:151.2px; height:189px;margin:40px auto; background: #ffffff;}
	.xyg-code .xyg-code-ewm{width:119px; padding:10px 16.1px; height:119px;}
	.xyg-code  .xyg-code-ewmimage{width:100%; height:100%;}
	.xyg-code .xyg-code-ewm-desc{width:100%; height:20px;line-height:20px; padding-top: 10px; letter-spacing: 0.2rem; font-size: 16px; color:#000000; text-align: center; }
	.xyg-code .xyg-code-ewm-name{width:100%; height:30px;line-height:30px; letter-spacing: 0.2rem; font-size: 16px; color:#000000; text-align: center; }
</style>
<body class="childrenBody">
<div class="xyg-code" style="width:151.2px; height:189px;margin:40px auto; background: #ffffff;">
	<div class="xyg-code-ewm" style="width:119px; padding:10px 16.1px; height:119px;">
		<img src="${webMember.qrCode}" class="xyg-code-ewmimage" style="width:100%; height:100%;"/>
		<div class="xyg-code-ewm-desc" style="width:100%; height:20px;line-height:20px; padding-top: 10px; letter-spacing: 0.2rem; font-size: 16px; color:#000000; text-align: center; ">
			ID号:${webMember.cardNo}
		</div>
		<div class="xyg-code-ewm-name" style="width:100%; height:30px;line-height:30px; letter-spacing: 0.2rem; font-size: 16px; color:#000000; text-align: center;">
			益多多
		</div>
	</div>
</div>
<div id="printer" style=" cursor: pointer; width:100px;font-size: 16px; color:#000000; text-align: center;  height: 30px; line-height: 30px; padding: 10px;margin:10px auto;">打印</div>
<script type="text/javascript" src="${s.base}/js/layui/layui.js"></script>
<script type="text/javascript" src="${s.base}/js/base/base.js"></script>
<script type="text/javascript" src="${s.base}/lib/jquery/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="${s.base}/js/jquery.PrintArea.js"></script>
<script type="text/javascript">
	layui.use(['form', 'jquery', 'baseUtil','fileUtil', 'pageUtil'],
    function() {
        var form = layui.form,
            $ = layui.jquery,
            baseUtil = layui.baseUtil,
            fileUtil = layui.fileUtil,
            pageUtil = layui.pageUtil;

        $("#printer").bind("click",function () {
            $(".xyg-code").printArea();
        });
    });</script>
</body>

</html>